package com.github.itdachen.constants;

/**
 * HtmlTypeEnum
 *
 * @author 王大宸
 * @date 2025/3/11 21:49
 */
public enum HtmlTypeEnum {

    INPUT {
        @Override
        public String value() {
            return HtmlTypeConstants.INPUT;
        }

        @Override
        public String text() {
            return "文本框";
        }
    },

    TEXT_AREA {
        @Override
        public String value() {
            return HtmlTypeConstants.TEXT_AREA;
        }

        @Override
        public String text() {
            return "文本域";
        }
    },

    LOCAL_DATE_TIME {
        @Override
        public String value() {
            return HtmlTypeConstants.LOCAL_DATE_TIME;
        }

        @Override
        public String text() {
            return "日期控件";
        }
    },

    IMAGE_UPLOAD {
        @Override
        public String value() {
            return HtmlTypeConstants.IMAGE_UPLOAD;
        }

        @Override
        public String text() {
            return "图片上传";
        }
    },

    RADIO {
        @Override
        public String value() {
            return HtmlTypeConstants.RADIO;
        }

        @Override
        public String text() {
            return "单选框";
        }
    },

    ;


    /**
     * java 类型, 例如: String, Long, Integer 等
     */
    public abstract String value();

    /**
     * 表单展示形式, 例如: input, textarea, select, radio 等
     */
    public abstract String text();


}
